<!DOCTYPE html>
<html>
<head>
	<title>vue</title>
	<meta charset="UTF-8">
	<script src="./vue.js"></script>
</head>
<body>
	<div id="app">{{message}}</div>

	<script>
		var app = new Vue({
			el: '#app',
			data: {
				message: new Date().toLocaleString(),
			},
			beforeCreate: function () {
				console.log('beforeCreate')
				console.log(this.$el)
			},
			created: function () {
				console.log('created')
				console.log(this.$el)
			},
			beforeMount: function () {
				console.log('beforeMount')
				console.log(this.$el)
			},
			mounted: function () {
				console.log('mounted')
				console.log(this.$el)
			},
			beforeUpdate: function () {
				console.log('beforeUpdate')
			},
			updated: function () {
				console.log('updated')
			},
			beforeDestroy: function () {
				console.log('beforeDestroy')
			},
			destroyed: function () {
				console.log('destroyed')
			},
		})
	</script>

</body>
</html>